<template>
  <div style="height:193px">
    <a-table class="h-100" :columns="columns" :data-source="list" :pagination="false" rowKey="sortId" :loading="loading" :scroll="{y: 153}"></a-table>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      list: [],
      loading: false,
      columns: [
        { title: '序号', dataIndex: 'sortId' },
        { title: '学院名称', dataIndex: 'collegeName', ellipsis: true, width: '60%' },
        {
          title: '通过率',
          dataIndex: 'passingRate',
          customRender: text => {
            return (text * 100)% 1 == 0 ? (text * 100) + '%' :  (text * 100).toFixed(1) + '%'
          }
        },
      ],
    };
  },
  props: {},
  methods: {
    createTable(tableData) {
      this.list = tableData;
    },
  },
};
</script>
<style scoped lang="less">
/deep/ .ant-table-tbody > tr > td{
  padding-top: 6px;
  padding-bottom: 6px;
}
</style>
